/*
 * @Description: 
 * @Author: zoe
 * @Date: 2024-09-20 08:46:42
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-20 08:47:12
 */
//派生类
public class Dog extends Animal{
    //重写父类
    @Override
    public void eat(){
        System.out.println("狗吃肉");
    }
    @Override
    public void sleep(){
        System.out.println("狗睡觉");
    }
}
